package oo1;

public class School {
	/**
	 * 名称，地址，大小，校长，在校生，老师数量，电话
	 */
	String name;
	String adress;
	double area;// 面积
	String headteacher;
	int numOfTeachers;
	String tele;

	// 介绍学校情况的方法
	public void introduceSelf() {
		System.out.println("本校名叫" + name + ",位于" + adress);
		System.out.println("占地" + area + "亩，现任校长" + headteacher);
		System.out.println("教职员工" + numOfTeachers + "人,联系电话是" + tele);

		showSlogo();//
		System.out.println("欢迎来参观学习");
	}

	public void showSlogo() {
		System.out.println(name + "的校训是：");
		System.out.println("水能载舟，亦能煮粥");
	}

	public void visit() {
		Car c = new Car();
		c.name = "金龙大客";
		System.out.println("邀请客人在学校参观");
		c.run();
	}
//
//	public static void main(String[] args) {
//		name = "安徽工业大学";
//	}
}
